package com.smartfarm.domain.handler;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor
public class Emergency {
    // 设备ID
    private final String equipmentId;
    // 紧急类型
    private final EmergencyType type;
    // 消息
    private final String message;

    // 紧急类型枚举
    public enum EmergencyType {
        // 低油量
        LOW_FUEL,
        // 机械故障
        MECHANICAL_FAILURE,
        // 障碍物检测
        OBSTACLE_DETECTED,
        // 天气警报
        WEATHER_ALERT
    }
} 